<include file="Public:header"/>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<div class="container app">
<include file="Public/sidebar" /> 
	<div id="mainCon" class="mainCon">
		<h4>扫描回复新用户</h4>
		<form class="form-horizontal" id="myform" method="">
			<div class="form-group">
				<label for="content" class="col-sm-2 control-label">默认回复内容</label>
				<div class="col-sm-5">
					<textarea name="content" id="article_prompt" cols="30" rows="8">
						<{$info['content']}>
					</textarea>
					<{:A('Admin/Editor')->buildEditor('content',"'link'");}>
				</div>
			</div>
			
			<div class="form-group">
				<label for="default" class="col-sm-2 control-label">匹配文字</label>
				<div style="margin-top:10px;margin-bottom:10px;text-align:left;color:#A0A0A0">
				【会员昵称】,【推荐人】
				</div>
			</div>
			
			<div class="form-group">
				<label for="default" class="col-sm-2 control-label">无推荐人回复</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" name="default" id="site_name" value="<{$info['default']}>" placeholder="无推荐人回复">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="button" onclick="form_submit()" class="btn btn-default col-sm-2">保存</button>
				</div>
			</div>
		</form>
	</div>
</div>
<script>
function form_submit(){
	var url = "<{:U('ScanUpNew')}>";
	$.post(url,$('form').serializeArray(),function(r){
		if(r.status == 1){
			layer.msg(r.msg);
			setTimeout(function(){window.location.href = "<{:U('ScanUpNew',array('k'=>9,'sk'=>7))}>"},1000);
			return false;
		}else{
			layer.msg(r.msg);
			return false;
		}
	})
}
</script>